package com.zyicoding.myfactory.service.impl;

import com.zyicoding.myfactory.dao.CarconfMapper;
import com.zyicoding.myfactory.pojo.Carconf;
import com.zyicoding.myfactory.service.CarConfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarConfServiceImpl implements CarConfService {
    @Autowired
    private CarconfMapper carconfMapper;
    @Override
    public List<Carconf> selectAllCarConf() {
        return carconfMapper.selectList(null);
    }

    @Override
    public Carconf selectCarconfById(Integer id) {
        return carconfMapper.selectById(id);
    }

}
